Skip to content

Fix 'bhead is not a function' for forks #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2018

Conversation

natefaubion
Copy link
Collaborator

Fixes #144

There seems to have been an attempt at a shortcut in evaluation of a Fork node. For some reason the state machine jumps immediately to STEP_BIND which isn't always valid. It's possible to be within a context where the Fork is the last node to evaluate. This appeared in the bug report within a bracket because a Bracket node uses the attempt stack and resets bhead and btail to null. You could probably trigger this bug with catchError (..) (forkAff (pure unit)) as well.

@natefaubion
Copy link
Collaborator Author

@felixSchl Do you mind trying this branch out?

@natefaubion natefaubion merged commit 3457df9 into purescript-contrib:master Apr 18, 2018
@natefaubion natefaubion deleted the bhead-fix branch April 18, 2018 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant